package com.k2091.washcar.service;

import com.k2091.washcar.entity.FormInline;
import com.k2091.washcar.entity.Users;
import com.baomidou.mybatisplus.extension.service.IService;
import com.k2091.washcar.entity.UsersCar;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author author
 * @since 2021-06-01
 */
public interface IUsersService extends IService<Users> {


    //用户添加车辆
    int addCar(UsersCar usersCar);
    //用户查询自己的车辆
    List<UsersCar> selectByUserId(Long id);
    //用户完善个人信息
    int insertMessage(Users users);

    //按条件查询用户
    List<Users> selectUser(FormInline formInline);
    //新增用户
    int addUser(Users users);
    //更改用户状态
    int upStatus(Long id,@Param("status")int status);
    //删除用户
    int userDelete(Long id);
    //按id查询(是否已存在
    Users selectUsersById(Long id);
    //更新用户
    int upUser(Users users);
}
